package com.chengqj.factory.factory;

/**
 * @program: pattern
 * @description: 具体工厂角色
 * @author: chengqj
 * @create: 2018-08-06 17:27
 **/
public class FruitFactory implements IFruitFactory {
    @Override
    public IFruit createFruit() {
        return new AppleFruit();
    }

    public static void main(String[] args) {
        new FruitFactory().createFruit().grow();
    }
}
